package com.yc.bdw.Activity;

import android.os.Bundle;
import android.os.Handler;
import android.os.Message;

import com.yc.bdw.R;

import org.kymjs.kjframe.KJActivity;

public class WelcomeActivity extends KJActivity{
    Handler handler = new Handler(){
        @Override
        public void handleMessage(Message msg) {
            switch (msg.what){
                case 1001:
                    showActivity(aty,HomeActivity.class);
                    finish();
            }
        }
    };
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

    }

    @Override
    public void setRootView() {
        setContentView(R.layout.activity_welcome);
        Message message = new Message();
        message.what=1001;
        handler.sendEmptyMessageDelayed(message.what,3000);
    }
}
